<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<head>
	<title>BOM列表</title>
</head>

<body>
		<form action="b!like.z?page.currentPage=1" method="post">
			<input type="text" name="like" value="${like }" />
			<button type="submit">
				搜索
			</button>
		</form>

	<table class="list">
		<thead>

			<tr title="">
				<th>
					BOM编号
				</th>
				<th>
					下载
				</th>
				<th>
					版本号
				</th>
				<th>
					创建日期
				</th>
				<th>
					备注
				</th>
			</tr>
		</thead>

		<c:forEach var="bom" items="${display['boms']}">
			<tr>
				<td>
					<a href="b!display.z?id=${bom.id}">${bom.code }</a>
				</td>
				<td>
					<a href="up!download.z?id=${bom.upload.id}">下载原始文件</a>
				</td>
				<td>
					VER. ${bom.version }
				</td>
				<td>
					${bom.upload.createTime }
				</td>
				<td>
					${bom.remark }
				</td>
			</tr>
		</c:forEach>
		<tr class="pagebutton">
			<td colspan="5">
				<jsp:include page="split_page.jsp">
					<jsp:param name="pagesize" value="50" />
					<jsp:param name="currentpage" value="${page.currentPage}" />
					<jsp:param name="rowcount" value="${page.rowCount}" />
					<jsp:param name="pagecount" value="${page.pageCount}" />
				</jsp:include>
			</td>
		</tr>
	</table>
	
</body>